package com.itheima.thread;

/*
第一种实现 多线程的方式
 */
public class Demo01 {


    public static void main(String[] args) {
        MyThread1 myThread1 = new MyThread1();
        MyThread1 myThread2 = new MyThread1();
        myThread1.setName("飞机");
        myThread2.setName("坦克");
        myThread1.start();

        myThread2.start();
        for (int i = 0; i < 100; i++) {
            System.out.println("main线程打印到了"+i);
        }

    }


}
